/* -*- Mode: Actionscript; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 3 -*- */
/**
@author Timothy Uruski 
@version 1.0 2007-10-23.
@description
**/

class com.criticalmass.common.geom.SolidFill extends com.criticalmass.common.geom.Fill {
   /*========================================================================
   *  CONSTANTS, DEFAULTS AND PROPERTIES
   =========================================================================*/
   public static var CLASS_PATH:String = 'com.criticalmass.common.geom.SolidFill';
   public static var CLASS_REF:SolidFill = com.criticalmass.common.geom.SolidFill;
   
   private static var DEFAULT_COLOR:Number = 0x000000;
   private static var DEFAULT_ALPHA:Number = 100;
   
   private var __color:Number;
   private var __alpha:Number;
   
   
   /*========================================================================
   *  ACCESSORS
   =========================================================================*/
   public function set color(ARG_color:Number):Void {
      __color = (ARG_color >= 0 && ARG_color <= 0xFFFFFF) ? ARG_color : DEFAULT_COLOR;
   }
   public function get color():Number {
      if(__color == null) __color = DEFAULT_COLOR;
      return __color;
   }
   
   public function set alpha(ARG_alpha:Number):Void {
      __alpha = (ARG_alpha >= 0 && ARG_alpha <= 100) ? ARG_alpha : DEFAULT_ALPHA;
   }
   public function get alpha():Number {
      if(__alpha == null) __alpha = DEFAULT_ALPHA;
      return __alpha;
   }
   
   
   /*========================================================================
   *  CONSTRUCTOR, INSTANTIATION CONTROL AND LIFECYCLE
   =========================================================================*/
   public function SolidFill(ARG_color:Number, ARG_alpha:Number) {
      color = ARG_color;
      alpha = ARG_alpha;
   }
   
   
   
}